package struct;

/**
 * Abstract class
 * @author Gabrielle DuBois
 */
public abstract class DBObject {
    protected final int numAttributes;
    protected final int numInPrimaryKey;
    protected Object[] attributes;

    /**
     * protected constructor to avoid direct instantiation of class
     */
    protected DBObject(int numAttrib, int numPrimKey){
        numAttributes = numAttrib;
        numInPrimaryKey = numPrimKey;
    }//constructor

   /**
     * 
     * @return a String array containing all the attributes that make
     *               the specific object
     */
    public abstract Object[] getAttributes();

    /**
     * 
     * @return
     */
    public abstract String[] getKey();
}
